// import com.alibaba.druid.sql.ast.SQLExpr_ptr;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

#include "MySqlShowStatusStatement.h"
#include "../../visitor/MySqlASTVisitor.h"
#include "../../../../ast/SQLExpr.h"

MySqlShowStatusStatement::MySqlShowStatusStatement()
{
}

BOOL_ptr MySqlShowStatusStatement::isGlobal()
{
  return global;
}

void MySqlShowStatusStatement::setGlobal(BOOL_ptr global)
{
  this->global = global;
}

BOOL_ptr MySqlShowStatusStatement::isSession()
{
  return session;
}

void MySqlShowStatusStatement::setSession(BOOL_ptr session)
{
  this->session = session;
}

SQLExpr_ptr MySqlShowStatusStatement::getLike()
{
  return like;
}

void MySqlShowStatusStatement::setLike(SQLExpr_ptr like)
{
  this->like = like;
}

SQLExpr_ptr MySqlShowStatusStatement::getWhere()
{
  return where;
}

void MySqlShowStatusStatement::setWhere(SQLExpr_ptr where)
{
  this->where = where;
}

void MySqlShowStatusStatement::accept0(MySqlASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(MySqlShowStatusStatement)))
  {
    acceptChild(visitor, like);
    acceptChild(visitor, where);
  }
  visitor->endVisit(SharedObject(MySqlShowStatusStatement));
}
